home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
qa
/
src
/
aoi_lib1.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-08
|
3KB
|
118 lines
// 葵ライブラリ用ヘッダファイル ///// Tab Size : 4 /////
// ///// Margin : 100 /////
// aoi_lib1.h v1.0 L10
//
// (C)K.Konishi 30-Sep-92
//
#if !defined(___AOI_lib)
#define ___AOI_lib
#define ___AOI_libDate 30-Sep-92
#define ___AOI_libVer v1.0_L10
typedef struct AOIstringData { // AOIstringのデータ格納用の構造体
short ax, ay, // ANK 文字 大きさ
sx, sy; // SJIS文字 大きさ
int sc, // 文字の色
ss; // 文字のスタイル
}AOIstringData;
typedef struct AOIbuttonData { // AOIbuttonのデータ格納用の構造体
short x, y, // ボタン座標
lx, ly; // ボタン大きさ
}AOIbuttonData;
#ifdef LIB
char para[64];
char work[EgbWorkSize];
char mwork[MosWorkSize];
char pat_work[258];
#define BUTTON 100
#endif
#ifdef MAIN
#include <EGB.h>
#include <MOS.h>
extern char para[64];
extern char work[EgbWorkSize];
extern char mwork[MosWorkSize];
extern char pat_work[258];
#define BUTTON 100
#define MDCL1 1 // 色の名前
#define MDCL2 2
#define MDCL3 3
#define MDCL4 4
#define MDCL5 5
#define MDCL6 6
#define MDCL7 7
#define BLACK 8
#define BLUE 9
#define RED 10
#define PURPLE 11
#define GREEN 12
#define SKYBLUE 13
#define YELLOW 14
#define WHITE 15
enum {OFF, ON};
#endif
int AOIstring(short x, short y, AOIstringData *Data, char *tx);
int AOIline(short x0, short y0, short x1, short y1, short c);
int AOIbox(short x0, short y0, short x1, short y1, short c);
int AOIboxFull(short x0, short y0, short x1, short y1, short c);
int AOIwinBase(short x, short y, short lx, short ly, short sd);
int AOIbuttonBase(short x, short y, short lx, short ly);
int AOIsetPalette(int cn, int cg, int cr, int cb);
int AOIsetPalette256(int cn, int cg, int cr, int cb);
int AOIsetStandardPalette(void);
int AOIcolorIGRB(int g, int r, int b);
void AOIsetButton(AOIbuttonData *Data, short x, short y, short lx, short ly);
int AOIbutton(short sx, short sy, int mx, int my, AOIbuttonData *Data);
void AOIfigureDraw(short sx, short sy, short figure);
void _AOIfigureDrawSet(short *fig, short *a);
void AOIfigureDraw2(short sx, short sy, int figure);
short _AOIrandom(short max); // 0~99までの特殊用途乱数発生
long AOIrandom(long max); // 0~999999までの乱数発生
int AOIbuttonLamp(short sx, short sy, AOIbuttonData *Data);
int AOIgetGraph(char *buf, short x0, short y0, short x1, short y1); // 画像データ画面の読み込み
int AOIputGraph(char *buf, short x0, short y0, short x1, short y1); // 画像データ画面の書き込み
void AOIwindowMove(char *dispTmp, short *sx, short *sy, short lx, short ly); // ウインドゥ移動
short AOItownsName(void); // TOWNSの機種判別
#endif